import Vue from 'vue'
import Vuex from 'vuex'

import fileUpload from './modules/fileUpload'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    collapse: false
  },
  getters: {},
  mutations: {
    // 点击收缩侧边栏
    changecollapse(state, collapse) {
      // console.log('collapse', collapse);
      state.collapse = collapse
    }
  },
  actions: {},
  modules: {
    fileUpload
  }
})